|
Eclipse Platform Pre-release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The ICoolBarManager
interface provides protocol for managing
contributions to a cool bar. A cool bar manager delegates responsibility
for creating child controls to its contribution items by calling
IContributionItem.fillCoolBar
}.
This interface is internal to the framework; it should not be implemented outside
the framework. This package provides a concrete cool bar manager implementation,
, which clients may
instantiate or subclass.
CoolBarManager
ToolBarContributionItem
Field Summary | |
static String |
SIZE
Property name of a cool item's size (value "size" ). |
static String |
VISIBILITY
Property name of a cool item's visiblity (value "visibility" ). |
Method Summary | |
void |
add(IToolBarManager toolBarManager)
A convenience method to add a tool bar as a contribution item to this cool bar manager. |
IMenuManager |
getContextMenuManager()
Returns the context menu manager used by this cool bar manager. |
boolean |
getLockLayout()
Returns whether the layout of the underlying cool bar widget is locked. |
int |
getStyle()
Returns the style of the underlying cool bar widget. |
void |
setContextMenuManager(IMenuManager menuManager)
Sets the context menu of this cool bar manager to the given menu manager. |
void |
setLockLayout(boolean value)
Locks or unlocks the layout of the underlying cool bar widget. |
Methods inherited from interface org.eclipse.jface.action.IContributionManager |
add, add, appendToGroup, appendToGroup, find, getItems, getOverrides, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, markDirty, prependToGroup, prependToGroup, remove, remove, removeAll, update |
Field Detail |
public static final String SIZE
"size"
).
The cool bar manager uses this property to tell its cool items to update their size.
IContributionItem.update(String)
,
Constant Field Valuespublic static final String VISIBILITY
"visibility"
).
The cool bar manager uses this property to tell its cool items to update their visibility.
IContributionItem.update(String)
,
Constant Field ValuesMethod Detail |
public void add(IToolBarManager toolBarManager)
add(new ToolBarContributionManager(toolBarManager))
.
toolBarManager
- the tool bar manager to be addedToolBarContributionItem
public int getStyle()
public boolean getLockLayout()
true
if cool bar layout is locked,
false
otherwisepublic void setLockLayout(boolean value)
Note that items can be added or removed programmatically even while the cool bar is locked.
value
- true
to lock the cool bar, false
to unlockpublic IMenuManager getContextMenuManager()
null
if nonesetContextMenuManager(org.eclipse.jface.action.IMenuManager)
public void setContextMenuManager(IMenuManager menuManager)
menuManager
- the context menu manager, or null
if nonegetContextMenuManager()
|
Eclipse Platform Pre-release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |